Skip to content

Fix matplotlib call#434

Merged
Zeitsperre merged 6 commits intomasterfrom
fix-matplotlib
Jan 8, 2025
Merged

Fix matplotlib call#434
Zeitsperre merged 6 commits intomasterfrom
fix-matplotlib

Conversation

@Zeitsperre
Copy link
Member

@Zeitsperre Zeitsperre commented Jan 3, 2025

Pull Request Checklist:

  • This PR addresses an already opened issue (for bug fixes / features)
    • This PR fixes #xyz
  • (If applicable) Documentation has been added / updated (for bug fixes / features).
  • (If applicable) Tests have been added.
  • CHANGELOG.rst has been updated (with summary of main changes).
    • Link to issue (:issue:number) and pull request (:pull:number) has been added.

What kind of change does this PR introduce?

  • Fixes a matplotlib for v3.10+ compatibility.
  • Pins pygments to avoid a breaking change affecting sphinx-codeautolink

Does this PR introduce a breaking change?

No.

Other information:

It's not entirely clear to me whether the dual histograms are being drawn properly to begin with. Alpha values from ax are the only ones that seem to matter when examining the graphic generated during tests.

Signed-off-by: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com>
@Zeitsperre Zeitsperre requested a review from huard January 3, 2025 15:48
@Zeitsperre Zeitsperre self-assigned this Jan 3, 2025
Signed-off-by: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com>
Signed-off-by: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com>
Copy link
Collaborator

@huard huard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ax2 is there to get the right hand side axis. I was plotting the outline to make sure both ax and ax2 histogram matched. I think the changes I proposed retain the previous behavior but work with mpl 3.10

Zeitsperre and others added 3 commits January 8, 2025 14:45
Co-authored-by: David Huard <huard.david@ouranos.ca>
Signed-off-by: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com>
Signed-off-by: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com>
@Zeitsperre Zeitsperre merged commit f31353d into master Jan 8, 2025
12 checks passed
@Zeitsperre Zeitsperre deleted the fix-matplotlib branch January 8, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants